﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using WebShopAPI.Filter;
using Models;
using DAL;
namespace WebShopAPI.Controllers
{
   // [CustomException]
    public class TestController : ApiController
    {
        //public int  Get(int a, int b)
        //{
        //    return a / b;
        //}

        //public string Get(string msg)
        //{
        //    return "我在测试："+msg;
        //}

        public object Get()
        {
            try
            {
                sp_userDAL dal = new sp_userDAL();
                return dal.GetAllUser();
            }
            catch (Exception ex)
            {
                return ex.Message + ex.InnerException.StackTrace;
            }
          
        }
    }
}
